package com.itheima.service.impl;

import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.Service;


//@Service //spring提供的@Service注解,将该类交给spring创建对象,保存到spring容器中
@Service //dubbo包中提供的service.除了将对象保存到spring容器中之外,还将该对象以服务的形式发布到zookeeper中
public class UserServiceImpl implements UserService {

    public String sayHello() {

        return "hello dubbo!~";
    }
}
